/**
 * 
 */
package com.googlecode.xcarve.object;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

/**
 * @author xinyun.du
 *
 */
public class ResponseMessage {
	
	public static final byte OK = 0x14;
	public static final byte ERROR = 0x14;
	public static final byte SERVICE_NOT_FOUND = 0x28;
	public static final byte SERVER_TIME_OUT = 0x32;
	public static final byte CLIENT_TIME_OUT = 0x3c;
	
	private long seqId;
	private String version;
	private byte status = OK;
	private String message;
	
	/**
	 * @return the seqId
	 */
	public long getSeqId() {
		return seqId;
	}
	/**
	 * @param seqId the seqId to set
	 */
	public void setSeqId(long seqId) {
		this.seqId = seqId;
	}
	/**
	 * @return the version
	 */
	public String getVersion() {
		return version;
	}
	/**
	 * @param version the version to set
	 */
	public void setVersion(String version) {
		this.version = version;
	}
	/**
	 * @return the status
	 */
	public byte getStatus() {
		return status;
	}
	/**
	 * @param status the status to set
	 */
	public void setStatus(byte status) {
		this.status = status;
	}
	/**
	 * @return the message
	 */
	public String getMessage() {
		return message;
	}
	/**
	 * @param message the message to set
	 */
	public void setMessage(String message) {
		this.message = message;
	}
	
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this, ToStringStyle.DEFAULT_STYLE);
	}
	
 
}
